import fetch from "./fetch";

// /6666  home  get   x-auth-token    actionCode
export const ApiHome = () =>
  fetch("/6666", { actionCode: "" }, { "x-auth-token": "" }, "GET");

//   /1024/login  login  post   password   username
export const ApiLogin = (username: string, password: string) =>
  fetch("/1024/login", { username, password });

// 注册   /1024/register  post  nickName  phone password
